GUI description ...


Properties


BackgroundGraphic

int BackgroundGraphic

Gets/sets the sprite used to draw the GUI's background image.


Clickable

bool Clickable

Gets/sets whether the GUI can be clicked on, or whether clicks pass straight through.


ControlCount

int ControlCount

Gets the number of controls on this GUI.


Controls

GUIControl[] Controls

Accesses the controls that are on this GUI.


Height

int Height

Gets/sets the height of the GUI.


ID

int ID

Gets the ID number of the GUI.


Transparency

int Transparency

Gets/sets the transparency of the GUI.


Visible

bool Visible

Gets/sets whether the GUI is visible.


Width

int Width

Gets/sets the width of the GUI.


X

int X

Gets/sets the X co-ordinate of the GUI's top-left corner.


Y

int Y

Gets/sets the Y co-ordinate of the GUI's top-left corner.


ZOrder

int ZOrder

Gets/sets the GUI's z-order relative to other GUIs.


Methods


Centre

void Centre()

Moves the GUI to be centred on the screen.


GetAtScreenXY

static GUI GetAtScreenXY(int x, int y)

Returns the GUI at the specified location.


GetControl

GUIControl GetControl(string controlID)

Get GUI Control based on string ID


SetPosition

void SetPosition(int x, int y)

Moves the GUI to have its top-left corner at the specified position.


SetSize

void SetSize(int width, int height)

Changes the size of the GUI.